﻿using System;
using SharpSqlAnalyzer.pp.processor;
using SharpSqlAnalyzer.pp.stmtformatter.type;
using SharpSqlAnalyzer.pp.stmtformatter.type.comm;

namespace SharpSqlAnalyzer.pp.stmtformatter.builder.comm
{
	// Token: 0x0200021F RID: 543
	public class DeleteStmtFormatterBuilder : AbstractStmtFormatterBuilder
	{
		// Token: 0x0600126C RID: 4716 RVA: 0x00318FB8 File Offset: 0x003171B8
		protected internal override void initSpecialProcessorForFormatter(AbstractStmtFormatter formatterArg)
		{
			DeleteStmtFormatter deleteStmtFormatter = formatterArg as DeleteStmtFormatter;
			deleteStmtFormatter.addSpecialProcessor(ProcessorFactory.createCapitalisationProcessor(this.Option));
			deleteStmtFormatter.addSpecialProcessor(ProcessorFactory.createCombineWhitespaceAndClearReturnProcessor(this.Option));
			deleteStmtFormatter.addSpecialProcessor(ProcessorFactory.createDeleteKeyWordAlignProcessor(this.Option));
			deleteStmtFormatter.addWhereClauseProcessor(ProcessorFactory.createAppendNewLineBeforeReverseKeyWordProcessor(this.Option, true, "where"));
		}

		// Token: 0x0600126D RID: 4717 RVA: 0x00319014 File Offset: 0x00317214
		protected internal override AbstractStmtFormatter newInstanceFormatter()
		{
			return new DeleteStmtFormatter();
		}
	}
}
